package com.fm.webrtc.websocket.message.request;

import com.fm.webrtc.websocket.message.Base;
import com.fm.mediasoup.json.RtpParameters;

/**
 * 创建数据发送端数据，将 sdp 信息发送给服务器
 */
public class Produce extends Base {
    private static final String TAG = Produce.class.getSimpleName();
    public String kind;
    public String transportId;
    public RtpParameters rtpParameters;

    public Produce(){

    }

    public Produce(Builder builder){
        this.kind = builder.kind;
        this.transportId = builder.transportId;
        this.rtpParameters = builder.rtpParameters;
    }

    @Override
    public String toString() {
        return "Produce{" +
                "kind='" + kind + '\'' +
                ", transportId='" + transportId + '\'' +
                ", rtpParameters=" + rtpParameters +
                '}';
    }


    public static class Builder{

        public Builder(){
        }


        public Builder setKind(String kind) {
            this.kind = kind;
            return this;
        }

        public Builder setTransportId(String transportId) {
            this.transportId = transportId;
            return this;
        }

        public Builder setRtpParameters(RtpParameters rtpParameters) {
            this.rtpParameters = rtpParameters;
            return this;
        }

        private String kind;
        private String transportId;
        private RtpParameters rtpParameters;

        public Produce build(){
            return new Produce(this);
        }
    }










}
